﻿using System;

namespace 优先队列
{
    internal class Program
    {
        static void Main(string[] args)
        {

            PriorityQueue<string, int> priorityQueue = new PriorityQueue<string, int>();
            priorityQueue.Enqueue("Low Priority Task", 2);
            priorityQueue.Enqueue("High Priority Task", 1);
            Console.WriteLine(priorityQueue.Dequeue()); // 输出 High Priority Task
        }
    }
}
